package jgl.vajra.management.part.mine.viewModel;

import java.util.Map;

import jgl.vajra.management.bean.MemberCenterBean;
import jgl.vajra.management.part.mine.contract.MemberCenterContract;
import jgl.vajra.management.part.mine.model.MemberCenterModel;
import jgl.vajra.management.widget.mvvm.factory.CreateModel;
import jgl.vajra.management.widget.retrofithelper.rxsubscriber.ProgressObserver;

@CreateModel(MemberCenterModel.class)
public class MemberCenterViewModel extends MemberCenterContract.ViewModel{
    @Override
    public void getMemberCenterData(Map<String, Object> map) {
        mModel.getMemberCenterData(map).subscribe(new ProgressObserver<MemberCenterBean>(true,this) {
            @Override
            public void _onNext(MemberCenterBean data) {
                mView.returnMemberCenterData(data);
            }
        });
    }
}
